package de.lindenvalley.ergo;

import android.content.Context;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

public class PointImageView extends ImageView implements View.OnTouchListener{

	private final String TAG = getClass().getSimpleName();

	public PointImageView(Context context) {
		super(context);
		setOnTouchListener(this);
	}
	
	

	public PointImageView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		setOnTouchListener(this);
		// TODO Auto-generated constructor stub
	}



	public PointImageView(Context context, AttributeSet attrs) {
		super(context, attrs);
		setOnTouchListener(this);
		// TODO Auto-generated constructor stub
	}



	@Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		LayoutParams params = (LayoutParams) v.getLayoutParams();
		Log.i(TAG, event.getX() + ", "  + event.getY());
		return false;
		
//		
//		params = new  
//		setLayoutParams(params)
		
	}
	
	

}
